﻿<Controls:MetroWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Applications="clr-namespace:Smokey.Client.Screens.Applications" x:Class="Smokey.Client.Screens.Common.MainWindow"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="Smokey"
        SizeToContent="Manual"
        WindowState="Normal"
        ResizeMode="CanResizeWithGrip"
        Height="768"
        Width="1024"
        Style="{StaticResource WindowStyle}">
    <Grid
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch">

        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto"/>
            <RowDefinition
                Height="Auto"/>
            <RowDefinition
                Height="Auto"/>
        </Grid.RowDefinitions>

        <Menu 
            Grid.Row="1"
            IsMainMenu="True"
            HorizontalAlignment="Right"
            Style="{StaticResource MenuStyle}">

            <MenuItem 
                Header="Applications"
                Style="{StaticResource MenuItemStyle}">
                <MenuItem 
                    Header="Add New Application"
                    Style="{StaticResource MenuItemStyle}"
                    Click="AddApplication_Click"/>
                <MenuItem 
                    Header="Manage"
                    Style="{StaticResource MenuItemStyle}"
                    Click="ManageApplications_Click"/>
            </MenuItem>
            <MenuItem
                Header="Admin"
                Style="{StaticResource MenuItemStyle}"/>
        </Menu>

        <ContentControl 
            x:Name="mainContentControl"
            Grid.Row="2"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch"
            Content="{Binding ContentControl}"
            Margin="40,24,40,-90"
            MaxHeight="650"
            >
        </ContentControl>

    </Grid>
</Controls:MetroWindow>
